<?php
// +----------------------------------------------------------------------
// | 管理员角色模型
// +----------------------------------------------------------------------
// | Author: myh
// +----------------------------------------------------------------------
namespace app\common\model;

class SysRoleModel extends BaseModel
{   
    
    protected $table = 'ds_sys_role';


    //根据账号搜索
    public function searchRoleNameAttr($query, $value, $data)
    {   
        if(!empty($value)){
            $query->where('role_name', $value);
        }
    }
}
